﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Base
{
    /// <summary>
    /// 设备文档说明
    /// </summary>
    [Table("Base_RepairOrderFile")]
    public partial class Base_RepairOrderFile
    {

        /// <summary>
        /// 自增主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 文档名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 文档类型
        /// </summary>
        public String Type { get; set; }

        /// <summary>
        /// 设备编号
        /// </summary>
        public String DeviceId { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public String FileEnclosure { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 伪删除
        /// </summary>
        public Boolean Deleted { get; set; }

    }

    public class Base_RepairOrderFileDTO : Base_RepairOrderFile {

        /// <summary>
        /// 设备子数据集合
        /// </summary>
        public List<Base_RepairOrderFileListName> SubData { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DevName { get; set; }
    }

    /// <summary>
    /// pc 查看设备文档明细
    /// </summary>
    public class Base_RepairOrderFileListDTO: Base_RepairOrderFileList
    {
        /// <summary>
        /// 文档名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 文档类型
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 设备id
        /// </summary>
        public string DeviceId { get; set; }
        /// <summary>
        /// 文档附件
        /// </summary>
        public string FileEnclosure { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

    }
}